package ar.edu.unq.tpi.uis.tepe3.dominio;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gpilla <gpilla@unq.edu.ar>
 *
 */
public class User extends Grantable{
	
	private String name;
	private String pass;
	private List<Group> groups;
		
	/**
	 * @param aName
	 * @param aId
	 * @param aPass
	 */
	public User(String aName, String aId, String aPass) {
		super(aId);
		this.setName(aName);
		this.setPass(aPass);
		this.setGroups(new ArrayList<Group>());
	}

	/**
	 * @param pass
	 */
	public void setPass(String pass) {
		this.pass = pass;
	}

	/**
	 * @return
	 */
	public String getPass() {
		return pass;
	}

	/**
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param groups
	 */
	public void setGroups(List<Group> groups) {
		this.groups = groups;
	}

	/**
	 * @return
	 */
	public List<Group> getGroups() {
		return groups;
	}


}